package cate.game.activity.godequip;

import cate.common.table.activity.godequip.row.GodEquipBaseRow;
import cate.common.table.activity.turntable.row.TurnTableBaseRow;
import cate.common.table.d.GDFunc;
import cate.game.activity.LogDetail;
import cate.game.activity.base.core.Activity;
import cate.game.activity.base.core.ActivityHandler;

@Activity(relatedFuncIds = {GDFunc.GOD_EQUIP})
public class GodEquipActivityHandler extends ActivityHandler<GodEquipGlobalData, GodEquipActivity> {
    @Override
    public String getName() {
        return "神装寻宝";
    }

    @Override
    public GodEquipGlobalData buildGlobal() {
        return new GodEquipGlobalData();
    }

    @Override
    public GodEquipActivity buildSingle() {
        return new GodEquipActivity();
    }

    @Override
    public void onActOpen() {

    }

    @Override
    public void onActClose() {

    }

    public void addLog(GodEquipBaseRow base, int activityId, LogDetail log) {
            getGlobalData().addLog(activityId, log, base.recordLimit);
    }

    public GodEquipDrawLog getLog(int activityId) {
        return getGlobalData().getLog(activityId);
    }
}
